<div>
    <button type="submit" id="nonForm">Not part of the form</button>

    <form id="test"
          data-form-submit-loader="true"
          data-form-submit-loader-options="{&quot;disableAfterSubmit&quot;: true}">
        <button type="submit" id="formBtn">Part of the form</button>
    </form>
</div>
